﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BizCollegeWebApp.Models.Survey>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Answer
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>
            <%: Model.Title %>
        </legend>
        <table class="no_border_table">
            <% int qcount = 1;
               foreach (SurveyQuestion sq in Model.SurveyQuestions)
               {%>
            <tr>
                <td valign="top">
                    <%: qcount %>
                </td>
                <td style="width: 20px">
                </td>
                <td>
                    <% if (sq.isMultipleChoice)
                       {
                           Html.RenderPartial("MultipleChoiceQuestion", sq);
                       }
                       else
                       { %>
                    <%: sq.QuestionText%> <br />
                    <%: Html.TextArea("CourseDesciption", new { @class = "cdTextArea" })%>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                </td>
            </tr>
            <%qcount++;
               } %>
        </table>
    </fieldset>
    <p>
        <%: Html.ActionLink("Edit", "Edit", new { id=Model.ID }) %>
        |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
